import request from '@/utils/request'

// 查询用户解锁企业记录列表
export function listUnlockRecord(query) {
  return request({
    url: '/crm/unlockRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户解锁企业记录详细
export function getUnlockRecord(id) {
  return request({
    url: '/crm/unlockRecord/' + id,
    method: 'get'
  })
}

// 新增用户解锁企业记录
export function addUnlockRecord(data) {
  return request({
    url: '/crm/unlockRecord',
    method: 'post',
    data: data
  })
}

// 修改用户解锁企业记录
export function updateUnlockRecord(data) {
  return request({
    url: '/crm/unlockRecord',
    method: 'put',
    data: data
  })
}

// 删除用户解锁企业记录
export function delUnlockRecord(id) {
  return request({
    url: '/crm/unlockRecord/' + id,
    method: 'delete'
  })
}
